import request from '../utils/request'

export const queryList = function () {
  return request({
    url: '/api/todo/list',
    method: 'get'
  })
}

export const addList = function (data) {
  return request({
    url: '/api/todo/add',
    method: 'post',
    data
  })
}

export const completeList = function (data) {
  return request({
    url: '/api/todo/complete',
    method: 'post',
    data
  })
}

export const removeList = function (data) {
  console.log('datassss', data)
  return request({
    url: '/api/todo/del',
    method: 'delete',
    data
  })
}
